<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>背景</title>
    <style>
        #d1{
            width: 500px;
            height: 200px;
            border:1px solid black;
            margin: 10px auto;
            /*background-image: url("../../png/regist.png");
            background-repeat: no-repeat;
            background-color: black;*/
            background: url("../../png/regist.png") no-repeat;
        }
        input{
            width: 300px;
            height: 35px;
        }
        #user_name{
            /*background:image position / size repeat color;*/
            background: url("../../png/yhm.png") no-repeat;
            background-position: 272px ;
        }
        #pass{
            background: url("../../png/mm.png") no-repeat;
            background-position: 272px;
        }
    </style>
</head>
<body>
    <div id="d1"></div>
    <hr>
    <form action="#" method="get">
        <div>
            <input type="text" placeholder="请输入用户名" name="username" id="user_name">
        </div>
        <div>
            <input type="password" placeholder="请输入密码" name="pass" id="pass">
        </div>
    </form>
</body>
</html>